<? foreach ($data as $product): ?>
<?php
    $group   = (object)$product['Group'];
    $product = (object)$product['Product'];

?>
<item>
    <id><?= $product->id ?></id>
    <title><?= $product->name ?></title>
    <image><?= Router::url('/img/products/' . $group->id . '/' . $product->image, true) ?></image>
    <link><?= Router::url('/proizvod/' . $product->id . '/'.
                                         urlize($group->name) . '/'.
                                         urlize($product->name), true) ?></link>
    <description><![CDATA[<?= $product->description ?>]]></description>
</item>
<? endforeach ?>